import { PLATFORM_Map } from "@/constant/index";

const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");
import home from "@/assets/images/leftminsvg/home.svg?component";
export default {
  path: "/",
  name: "Home",
  component: Layout,
  redirect: "/welcome",
  meta: {
    icon: home,
    title: "首页",
    rank: 0,
    platform: [PLATFORM_Map.manage, PLATFORM_Map.operate],
  },
  children: [
    {
      path: "/welcome",
      name: "Welcome",
      component: () => import("@/views/welcome/operate.vue"),
      meta: {
        title: "运行首页",
        showLink: VITE_HIDE_HOME === "true" ? false : true,
        platform: [PLATFORM_Map.operate]
      }
    }, {
      path: "/welcome",
      name: "Welcome",
      component: () => import("@/views/welcome/manage.vue"),
      meta: {
        title: "管理首页",
        showLink: VITE_HIDE_HOME === "true" ? false : true,
        platform: [PLATFORM_Map.manage]
      }
    }
  ]
} satisfies RouteConfigsTable;
